<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      6.49.&nbsp;Gzip-1.5
    </title>
    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="lfs" id="lfs-7.3">
    <div class="navheader">
      <h4>
        Linux From Scratch - Version 7.3
      </h4>
      <h3>
        Chapter&nbsp;6.&nbsp;Installing Basic System Software
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="less.html" title="Less-451">Prev</a>
          <p>
            Less-451
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="iproute2.html" title=
          "IPRoute2-3.8.0">Next</a>
          <p>
            IPRoute2-3.8.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "Chapter&nbsp;6.&nbsp;Installing Basic System Software">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 7.3">Home</a>
        </li>
      </ul>
    </div>
    <div class="wrap" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="ch-system-gzip" name="ch-system-gzip"></a>6.49. Gzip-1.5
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <p>
          The Gzip package contains programs for compressing and
          decompressing files.
        </p>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Approximate build time:</strong>
              <span class="segbody">0.2 SBU</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Required disk space:</strong>
              <span class="segbody">19.7 MB</span>
            </div>
          </div>
        </div>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          6.49.1. Installation of Gzip
        </h2>
        <p>
          Prepare Gzip for compilation:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr --bindir=/bin</kbd>
</pre>
        <p>
          Compile the package:
        </p>
        <pre class="userinput">
<kbd class="command">make</kbd>
</pre>
        <p>
          To test the results, issue:
        </p>
        <pre class="userinput">
<kbd class="command">make check</kbd>
</pre>
        <p>
          Install the package:
        </p>
        <pre class="userinput">
<kbd class="command">make install</kbd>
</pre>
        <p>
          Move some programs that do not need to be on the root filesystem:
        </p>
        <pre class="userinput">
<kbd class="command">mv -v /bin/{gzexe,uncompress,zcmp,zdiff,zegrep} /usr/bin
mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          <a id="contents-gzip" name="contents-gzip"></a>6.49.2. Contents of
          Gzip
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed programs:</strong>
              <span class="segbody">gunzip, gzexe, gzip, uncompress, zcat,
              zcmp, zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, and
              znew</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0">
            <col align="left" valign="top" />
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="gunzip" name="gunzip"></a><span class=
                    "term"><span class=
                    "command"><strong>gunzip</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Decompresses gzipped files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gzexe" name="gzexe"></a><span class=
                    "term"><span class=
                    "command"><strong>gzexe</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Creates self-decompressing executable files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gzip" name="gzip"></a><span class=
                    "term"><span class=
                    "command"><strong>gzip</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Compresses the given files using Lempel-Ziv (LZ77) coding
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="uncompress" name="uncompress"></a><span class=
                    "term"><span class=
                    "command"><strong>uncompress</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Decompresses compressed files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="zcat" name="zcat"></a><span class=
                    "term"><span class=
                    "command"><strong>zcat</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Decompresses the given gzipped files to standard output
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="zcmp" name="zcmp"></a><span class=
                    "term"><span class=
                    "command"><strong>zcmp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>cmp</strong></span> on
                    gzipped files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="zdiff" name="zdiff"></a><span class=
                    "term"><span class=
                    "command"><strong>zdiff</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>diff</strong></span>
                    on gzipped files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="zegrep" name="zegrep"></a><span class=
                    "term"><span class=
                    "command"><strong>zegrep</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>egrep</strong></span>
                    on gzipped files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="zfgrep" name="zfgrep"></a><span class=
                    "term"><span class=
                    "command"><strong>zfgrep</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>fgrep</strong></span>
                    on gzipped files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="zforce" name="zforce"></a><span class=
                    "term"><span class=
                    "command"><strong>zforce</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Forces a <code class="filename">.gz</code> extension on
                    all given files that are gzipped files, so that
                    <span class="command"><strong>gzip</strong></span> will
                    not compress them again; this can be useful when file
                    names were truncated during a file transfer
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="zgrep" name="zgrep"></a><span class=
                    "term"><span class=
                    "command"><strong>zgrep</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>grep</strong></span>
                    on gzipped files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="zless" name="zless"></a><span class=
                    "term"><span class=
                    "command"><strong>zless</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>less</strong></span>
                    on gzipped files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="zmore" name="zmore"></a><span class=
                    "term"><span class=
                    "command"><strong>zmore</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Runs <span class="command"><strong>more</strong></span>
                    on gzipped files
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="znew" name="znew"></a><span class=
                    "term"><span class=
                    "command"><strong>znew</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    Re-compresses files from <span class=
                    "command"><strong>compress</strong></span> format to
                    <span class="command"><strong>gzip</strong></span>
                    format&mdash;<code class="filename">.Z</code> to
                    <code class="filename">.gz</code>
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="less.html" title="Less-451">Prev</a>
          <p>
            Less-451
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="iproute2.html" title=
          "IPRoute2-3.8.0">Next</a>
          <p>
            IPRoute2-3.8.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "Chapter&nbsp;6.&nbsp;Installing Basic System Software">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 7.3">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
